//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['The Bellamy Brothers','Charles Bailey Theatre','Trail, Canada','Tuesday','4/30/2024','7:30 PM','6360825','The-Bellamy-Brothers-4-30-2024'],['The Bellamy Brothers','Vernon and District Performing Arts Centre','Vernon, Canada','Wednesday','5/1/2024','7:30 PM','6160625','The-Bellamy-Brothers-5-1-2024'],['The Bellamy Brothers','Clarke Theatre Foundation','Mission, Canada','Thursday','5/2/2024','7:00 PM','6360824','The-Bellamy-Brothers-5-2-2024'],['The Bellamy Brothers','Pend Oreille Pavilion At Northern Quest Resort & Casino','Airway Heights, WA','Friday','5/3/2024','7:30 PM','5982308','The-Bellamy-Brothers-5-3-2024'],['The Bellamy Brothers','The Post OG','Orange Grove, TX','Friday','5/10/2024','8:00 PM','6035332','The-Bellamy-Brothers-5-10-2024'],['Opry Country Classics','Grand Ole Opry House','Nashville, TN','Thursday','5/16/2024','7:00 PM','6275186','Opry-Country-Classics-5-16-2024'],['The Bellamy Brothers & Gene Watson','Sugar Creek Casino','Hinton, OK','Saturday','5/18/2024','7:00 PM','6361899','The-Bellamy-Brothers---Gene-Watson-5-18-2024'],['The Bellamy Brothers','Longhorn Ballroom','Dallas, TX','Sunday','6/2/2024','8:00 PM','6376239','The-Bellamy-Brothers-6-2-2024'],['The Bellamy Brothers','Kentucky Opry','Benton, KY','Saturday','6/8/2024','7:00 PM','6368239','The-Bellamy-Brothers-6-8-2024'],['The Bellamy Brothers','Capitol Arts Center','Bowling Green, KY','Saturday','6/15/2024','7:00 PM','6368238','The-Bellamy-Brothers-6-15-2024']],'"The Bellamy Brothers"','https://www.ticketnetwork.com');